package Jcat.cduestcbbs.Service;

import java.sql.SQLException;

import Jcat.cduestcbbs.DaoImpl.PostsDaoImpl;
import Jcat.cduestcbbs.Po.PostsPo;

public class AddPostToWonderfulService {

	private PostsDaoImpl changepoststate = new PostsDaoImpl();

	public boolean changePostToWonderful(PostsPo post) {

		try {
			if (changepoststate.changePostToWonderful(post.getPostsId()) == true) {
				return true;
			} else {
				return false;
			}
		} catch (SQLException e) {
			e.printStackTrace();
			return false;
		}
	}

}
